package com.kk.adapter.classadapter;

/**
 * @author 王志强
 * @date 2021-12-16
 */
public class Phone {

    public void charging(IVoltage5V v) {
        int current = v.output5V();
        if (current == 5) {
            System.out.println(current + "V,手机正常充电");
        } else {
            System.out.println(current + "V,手机不能正常充电！！！");
        }
    }
}
